<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            background-color: #f5f5f5;

        }

        .box {
            position: relative;
            width: 400px;
            margin: 100px auto;
        }

        .box img {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
        }

        .box img:nth-child(1) {
            border-radius: 50%;
        }

        .box img:nth-child(2) {
            /* transform: scale(1.1); */
            scale: 1.1;
            animation: rotate 3s linear infinite;
        }

        /* 旋转效果 */
        /* @keyframes rotate {
            0% {
                transform: scale(1.1) rotate(0deg);
            }

            100% {
                transform: scale(1.1) rotate(360deg);
            }

        } */

        @keyframes rotate {
            0% {
                transform: rotate(0deg);
            }

            100% {
                transform: rotate(1turn);

            }

        }
    </style>
</head>

<body>
    <div class="box">
        <img src="./img/bgimg.png" alt="">
        <img src="./img/rotate.png" alt="">
    </div>
</body>

</html>